package cn.stylefeng.guns.modular.system.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 用户问题及回答表
 */
@TableName("QUESTION_ANSWER")
public class QuestionAnswer implements Serializable {


    @TableId(value = "ANSWER_ID" , type = IdType.ID_WORKER)
    private Long answerId;

    public Long getAnswerId() {
        return answerId;
    }

    public void setAnswerId(Long answerId) {
        this.answerId = answerId;
    }

    /**
     * 问了谁
     */
    @TableField("USER_ID")
    private Long userId;
    /**
     * 问了谁
     */
    @TableField(value = "USERNAME")
    private String username;
    /**
     * 回答了什么
     */
    @TableField(value = "ANSWER")
    private String answer;
    /**
     * 问了什么
     */
    @TableField(value = "QUESTION")
    private String question;
    /**
     * 谁问了
     */
    @TableField(value = "QUESTION_ID")
    private Long questionId;
    /**
     * 谁问了
     */
    @TableField(value = "QUESTION_NAME")
    private String questionName;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public String getQuestionName() {
        return questionName;
    }

    public void setQuestionName(String questionName) {
        this.questionName = questionName;
    }
}
